PEGetNSortFields

Use PEGetNSortFields to retrieve the number of sort fields in the specified report. This function is typically used as one of a series of functions (PEGetNSortFields called once; var reportAlertInfo : PEReportAlertInfo) : boolean stdcall; and PEGetHandleString called together as many times as needed to identify the correct sort field; and PESetNthSortField called once when the correct sort field is identified). The series can be used in a Custom-Print Link to identify and then change an existing sort field and/or sort order in response to a user selection at print time.

C Syntax
short CRPE_API PEGetNSortFields (
        short printJob );
Parameter

printJob

Specifies the print job for which you want to determine the number of sort fields contained.

Returns
VB Syntax

VB Sample Code for sorting records

Declare Function PEGetNSortFields Lib "crpe32.dll" ( _
    ByVal printJob As Integer ) As Integer
Delphi Syntax
function PEGetNSortFields (
    printJob: Word
    ): smallint stdcall;
dBASE for Windows Syntax

EXTERN CWORD PEGetNSortFields (CWORD) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com